﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChoiceFiles_Search.aspx.cs" Inherits="Common_ChoiceFiles_Search" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
 <title>无标题页</title>
    <link href="../CSS/css.CSS" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript">
       function SearchPersInfo_CK()
       {
          var sFilesName = form1.PersName.value;
          var sFolderID   = form1.HChoiceID_1.value;
          var sFolderName = form1.ChoiceName_1.value; 
          if(sFolderName == "")
          {
              sFolderID = "";
          }
          if(sFilesName == "" && sFolderID == "")
          {
              alert("请输入查询条件");
          }
          else
          {
              eval("parent.RightFrame.location.href = \"ChoiceFiles_List.aspx?FilesName="+sFilesName+"&FolderID="+sFolderID+"&FolderName="+sFolderName+"\";");
          }
       }
       
        //选择组织信息
      var sChoiceID;               //所在赋值的关键字
      var ChoiceNameInfo;          //选择的名称集合
      var ChoiceIDInfo;            //选择的ID集合
      var iChoicePoNumber1 =1;     //0表示任意多,其它的正整数为可以选择的最大个数.不可以为负数
      function GetMyOrgTree(obj)
      {
         var sOrgIDCol = form1.HOrgIDCol.value;
         var sFeatures = "dialogHeight:600px;dialogWidth:400px;resizeable:no;help:no;status:no";
         var obj = showModalDialog("../SysManage/ChoiceOrgInfo.aspx?ChoiceID="+obj+"&OrgType=2&OrgIDCol="+sOrgIDCol,window,sFeatures);
         if(obj != undefined)
         {
             sChoiceID = obj.sChoiceID;
             ChoiceNameInfo = obj.ChoiceNameInfo;
             ChoiceIDInfo=obj.ChoiceIDInfo;
             eval("form1.ChoiceName_"+sChoiceID+".value="+ChoiceNameInfo+";");
             eval("form1.HChoiceID_"+sChoiceID+".value="+ChoiceIDInfo+";");
             eval("form1.ChoiceName_"+sChoiceID+".blur()");
         }
      }
      
      //文件夹选择
     var sChoiceID;               //所在赋值的关键字
     var ChoiceNameInfo;          //选择的名称集合
     var ChoiceIDInfo;            //选择的ID集合
     var iChoicePoNumber2 =0;     //0表示任意多,其它的正整数为可以选择的最大个数.不可以为负数

    function  GetMyFolderTree(obj)
    {
        var sFeatures = "dialogHeight:600px;dialogWidth:500px;resizeable:no;help:no;status:no";
        var obj = showModalDialog("ChoiceFolders.aspx?ChoiceID="+obj,window,sFeatures); 
        if(obj != undefined)
         {
             sChoiceID = obj.sChoiceID;
             ChoiceNameInfo = obj.ChoiceNameInfo;
             ChoiceIDInfo=obj.ChoiceIDInfo;            
             eval("form1.ChoiceName_"+sChoiceID+".value="+ChoiceNameInfo+";");
             eval("form1.HChoiceID_"+sChoiceID+".value="+ChoiceIDInfo+";");
             eval("form1.ChoiceName_"+sChoiceID+".blur()");
         }
    }
    </script>
</head>
<body style =" background-image :url('../images/hit_bg.gif');">
    <form id="form1" runat="server">
    <input type="hidden" id="HOrgIDCol" runat ="server"  />
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
      <tr bgcolor="C3DCF6" style ="height :30px;"> 
        <td>名称：<asp:TextBox ID="PersName" runat="server" Width="100" MaxLength ="20"></asp:TextBox>
            所属文件夹：<asp:TextBox ID="ChoiceName_1" runat ="server" onclick ="GetMyFolderTree(1)" TabIndex ="1" Width="100px" ></asp:TextBox>
                        <input type="hidden" id="HChoiceID_1" runat ="server" />
            <input id="SearchPersInfo" name="Query" type="submit" class="botton02" value="查询" onclick ="SearchPersInfo_CK()" /></td>
      </tr>
    </table>
    </form>
</body>
</html>
